<?php

require_once 'Ext/Oauth/Login/Interface.php';

abstract class Ext_Oauth_Login_Abstract implements Ext_Oauth_Login_Interface
{
    protected $_storage = null;
    
    public function __construct()
    {
    }
    
    public function getStorage()
    {
        if (null === $this->_storage) {
            require_once 'Ext/Session.php';
            $this->setStorage(new Ext_Session());
        }

        return $this->_storage;
    }


    public function setStorage(Ext_Session $storage)
    {
        $this->_storage = $storage;
        return $this;
    }

}
